class Person{
  id: number;
  name: string;
  age: number = 18;
  static gender: string = '大一';

  constructor(name: string, id: number){
    this.name = name
    this.id = id
  }

  show(){
    return `hello, I am ${this.name}, and I am ${this.age} years old. `
  }

  static show02(){
    return `hello world`
  }
}

let p = new Person('张三', 2)
console.log(p.name)
console.log(p.show())
console.log(Person.gender)
console.log(Person.show02())
